* prep_ma_boko_haram.r
* prep_acled_data_1999_2015.r
* ACLED_Codebook_2019FINAL_pbl.pdf
*

// Get the path of the currently running do-file
local do_file_path `c(pwd)'

// Change the working directory to the location of the do-file
cd "`do_file_path'"


clear
*import delimited "E:\wb\OneDrive\OneDrive - WBG\lake_chad_rem\!proc_data\bh_acled_cum_w_all_types_base2009_20182020-10-20.csv"
import delimited "proc_data\bh_acled_cum_w_all_types_base2009_20202020-12-05.csv"

rename *, lower

rename joinid objectid
rename bhfatalities bhfatal
rename bhevents bhevent
sort objectid year

label variable bhfatal "BH Fatalities : ACLED"
label variable bhevent "BH Events : ACLED"
label variable bhcombconf "BH combined (events + 0.5 * fatalities) : ACLED"

label variable bhecivilian "BH Violence against civilians events : ACLED"
label variable bhebattle "BH Battles events : ACLED"
label variable bheriot "BH Protest or riot event : ACLED"
label variable bherebel "BH Non-violent - strategic developments event : ACLED"
label variable bheexpl_rmot "BH Explosions/Remote violence ie. where retaliation is not possible : ACLED"

label variable bhfcivilian "BH Violence against civilians fatalities : ACLED"
label variable bhfbattle "BH Battles fatalities : ACLED"
label variable bhfriot "BH Protest or riot fatalities : ACLED"
label variable bhfrebel "BH Non-violent - strategic developments fatalities : ACLED"
label variable bhfexpl_rmot "BH Explosions/Remote violence ie. where retaliation is not possible fatalities : ACLED"

label variable bhccivilian "BH Violence against civilians combined : ACLED"
label variable bhcbattle "BH Battles combined : ACLED"
label variable bhcriot "BH Protest or riot event combined : ACLED"
label variable bhcrebel "BH Non-violent - strategic developments combined : ACLED"
label variable bhcexpl_rmot "BH Explosions/Remote violence ie. where retaliation is not possible combined : ACLED"


** cumulative
label variable bhcumfatal "BH Cumulative Fatalities (base 2009) : ACLED"
label variable bhcumevent "BH Cumulative Events (base 2009) : ACLED"
label variable bhcumcombconf "BH Cumulative Combined (events + fatalities) (base 2009) : ACLED"

label variable bhcumecivilian "BH Cum. Violence against civilians event (base 2009) : ACLED"
label variable bhcumebattle "BH Cum. Battles event (base 2009) : ACLED"
label variable bhcumeriot "BH Cum. Protest or riot event (base 2009) : ACLED"
label variable bhcumerebel "BH Cum. Non-violent - strategic developments event (base 2009) : ACLED"
label variable bhcumeexplrmot "BH Cum. Explosions/Remote violence ie. where retaliation is not possible (base 2009) : ACLED"

label variable bhcumfcivilian "BH Cum. Violence against civilians fatalities (base 2009) : ACLED"
label variable bhcumfbattle "BH Cum. Battles fatalities (base 2009) : ACLED"
label variable bhcumfriot "BH Cum. Protest or riot fatalities (base 2009) : ACLED"
label variable bhcumfrebel "BH Cum. Non-violent - strategic developments fatalities (base 2009) : ACLED"
label variable bhcumfexplrmot "BH Cum. Explosions/Remote violence ie. where retaliation is not possible fatalities (base 2009) : ACLED"

label variable bhcumccivilian "BH Cum. Violence against civilians combined (base 2009) : ACLED"
label variable bhcumcbattle "BH Cum. Battles combined (base 2009) : ACLED"
label variable bhcumcriot "BH Cum. Protest or riot combined (base 2009) : ACLED"
label variable bhcumcrebel "BH Cum. Non-violent - strategic developments combined (base 2009) : ACLED"
label variable bhcumcexplrmot "BH Cum. Explosions/Remote violence ie. where retaliation is not possible combined (base 2009) : ACLED"

save "proc_data\ACLED_w_types_0018_ts3.dta", replace

